#include <stdio.h>
#include <stdlib.h>
typedef struct List_
{
    char data;
    struct List_ *next;
}List;
void main()
{
    int i;
    char ch;
    List *head,*tail,*p;
    head=(List *)malloc(sizeof(List));
    printf("please input 6 characters:\n");
    ch=getchar();
    head->data=ch;
    p=(List *)malloc(sizeof(List));
    head->next=p;
    for(i=0;i<5;i++)
    {
        ch=getchar();
        p->data=ch;
        tail=p;
        p=(List *)malloc(sizeof(List));
        tail->next=p;
    }
    putchar("\n");
    tail->next=NULL;
    p=head;
    for(;p!=NULL;)
    {
        printf("%c  ",p->data);
        p=p->next;
    }
}
